import React, { Component } from "react";
// import { Redirect } from "react-router-dom";
import { withRouter } from "react-router";

class UserDetail extends Component<any, any> {
  //   auth = false;
  componentDidMount() {
    console.log("???");
  }
  render() {
    // if (!this.auth) {
    //   return <Redirect to="/login" from="/user/detail" push/>;
    // }
    return <div>UserDetail</div>;
  }
}
export default withRouter(UserDetail);
